import { ajax_tool } from './ajax.js'
import api from './api.js'

//登录
export function login(data) {
    return ajax_tool("POST", api.login, data)
}

//预约记录
export function report(data) {
    return ajax_tool("POST", api.report, data)
}

//选择日期
export function chooseList(data) {
    return ajax_tool("GET", api.chooseList, data)
}

//根据日期请求场次
export function chooseday(data) {
    return ajax_tool("GET", api.chooseday, data)
}

//预约请求地址
export function book(data) {
    return ajax_tool("POST", api.book, data)
}

//二维码请求地址
export function QCcode(data) {
    return ajax_tool("GET", api.Allcode, data)
}